package com.ogawa.projectcommon.service

import com.ogawa.base.base.BaseResponseBean
import com.ogawa.projectcommon.bean.DiyBean
import retrofit2.http.*

interface DiyApiService {

    @POST("/api/programService/v1/diyProgram")
    suspend fun saveDiyProgram(@Body diyBean: DiyBean): BaseResponseBean<DiyBean>

    @PUT("/api/programService/v1/diyProgram")
    suspend fun updateDiyProgram(@Body diyBean: DiyBean): BaseResponseBean<DiyBean>

    @GET("/api/programService/v1/diyProgram")
    suspend fun getDiyProgram(
        @Query("typeCode") typeCode: String,
        @Query("userId") userId: String
    ): BaseResponseBean<MutableList<DiyBean>>

    @PUT("/api/programService/v1/diyProgram/share/{id}")
    suspend fun shareDiy(@Path("id") id: String): BaseResponseBean<String>
}